﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Nardax.Samples.DiscoverableService1
{
    class Program
    {
        static void Main(string[] args)
        {
            var ds = new DiscoverableService();
            ds.Start();

            using (var sh = new ServiceHost(ds))
            {
                sh.Open();
                Console.WriteLine("Discoverable Service 1 is running.");
                Console.ReadKey();
            }

            ds.Stop();
        }
    }
}
